libxc: allocate memory with vNUMA information for HVM guest
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Mar 2015 09:52:31 +0000 (09:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Mar 2015 12:04:55 +0000 (12:04 +0000)
commit50619a4734185da6740650c5affbfaf5785b792c
treee26d0cbc0b0a945d67032819aedf2eb34019b4cd
parentb5099f1f2115fa9d24918df12657e806f4fefff0
libxc: allocate memory with vNUMA information for HVM guest

The algorithm is more or less the same as the one used for PV guest.
Libxc gets hold of the mapping of vnode to pnode and size of each vnode
then allocate memory accordingly.

And then the function returns low memory end, high memory end and mmio
start to caller. Libxl needs those values to construct vmemranges for
that guest.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Elena Ufimtseva <ufimtseva@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/include/xenguest.h
tools/libxc/xc_hvm_build_x86.c